package com.hzdh.account.commom;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Message<T> {

	private static final Integer SUSSCESS = 200;

	private static final Integer FAIL = 400;

	private static final Integer SESSCESS_LAYUI = 0;

	private Integer code;
	private String message;
	private Long count;
	private List<T> data;

	public Message(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public Message(Integer code, String message, Long count, List<T> data) {
		this.code = code;
		this.message = message;
		this.count = count;
		this.data = data;
	}

	public Message(Integer code, String message, List<T> data) {
		super();
		this.code = code;
		this.message = message;
		this.data = data;
	}

}
